{include file="header.tpl" }
<table width="98%" cellspacing=0 cellpadding=0 align=center>
  <tr>
    <td align=left> <b><A href="{$index_url}"><img src='{#t_images#}navi.gif' border=0 alt="">{$html_title}</A> &gt;&gt; {$list_nav}</b></td>
  </tr>
</table>
<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
<table width="98%"  border="0" align="center" cellspacing=1 cellpadding=3 >
<tr>
<td  height="50%" valign="top"><!-- left start -->
{if $code eq "g" or $code eq "lg" }
<table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
<tr >
  <th width="15%"    class='td_head'>图&nbsp;片</th>
  <th width="53%" class='td_head'>
    排序：<select name="select" onchange="window.location.href='index.php?act=Lst&code={$code}&FieldID=' + this.options[this.selectedIndex].value;">
      <option value="0" {if $FieldID eq 0} selected{/if}>----排序条件----</option>
      <option value="1" {if $FieldID eq 1} selected{/if}>按上架时间近到远</option>
      <option value="2" {if $FieldID eq 2} selected{/if}>按上架时间远到近</option>
      <option value="3" {if $FieldID eq 3} selected{/if}>价格从低到高</option>
      <option value="4" {if $FieldID eq 4} selected{/if}>价格从高到低</option>
      <option value="5" {if $FieldID eq 4} selected{/if}>人气从高到低</option>
    </select></th>
  <th width="19%" class='td_head'>商家</th>
  <th width="17%" class='td_head'>上架时间</th>
</tr>
{section name=goods loop=$glist}
<tr class='f_one'>
  <td align="center"><a href="index.php?act=gd&GOODS_ID={$glist[goods][0]}"><img src="{$glist[goods][6]}"></a> </td>
  <td ><table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="18"><strong><a class="linkn" href="index.php?act=gd&GOODS_ID={$glist[goods][0]}">{$glist[goods][1]}</a></strong></td>
        </tr>
      <tr>
        <td><img src="{#t_images#}dollar.gif" width="14" height="15">&nbsp;{if $glist[goods][3] eq 0} 面议{else}{$glist[goods][3]}元{if $glist.goods_discount} X {$glist.goods_discount}%(折扣){/if} {/if}</td>
      </tr>
      <tr>
        <td {if $glist[goods][4] ge 100}class=red{/if}>人气：{$glist[goods][4]}</td>
      </tr>
    </table></td>
  <td >{$glist[goods][5]}<br>
    {section name=key loop=$glist[goods][8]}<img src="{#t_images#}shell.gif"  border="0" title="{$glist[goods][7]}">{/section}</td>
  <td >{$glist[goods][2]}</td>
</tr>{/section}
<tr class='f_one'>
  <td colspan="4" align="right">{$pages}</td>
  </tr>
</table>{elseif $code eq "search"}
<table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
  <tr >
    <th width="15%"    class='td_head'>图&nbsp;片</th>
    <th width="53%" class='td_head'> 排序：
          <select name="select3" onchange="window.location.href='index.php?act=Lst&code={$code}&CID={$cid}&FieldID=' + this.options[this.selectedIndex].value;">
          <option value="0" {if $FieldID eq 0} selected{/if}>----排序条件----</option>
          <option value="1" {if $FieldID eq 1} selected{/if}>按上架时间近到远</option>
          <option value="2" {if $FieldID eq 2} selected{/if}>按上架时间远到近</option>
          <option value="3" {if $FieldID eq 3} selected{/if}>价格从低到高</option>
          <option value="4" {if $FieldID eq 4} selected{/if}>价格从高到低</option>
          <option value="5" {if $FieldID eq 4} selected{/if}>人气从高到低</option>
        </select></th>
    <th width="19%" class='td_head'>商家</th>
    <th width="17%" class='td_head'>上架时间</th>
  </tr>
  {section name=goods loop=$glist}
  <tr class='f_one'>
    <td align="center"><a href="index.php?act=gd&GOODS_ID={$glist[goods][0]}"><img src="{$glist[goods][6]}"></a> </td>
    <td ><table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="18"><strong><a class="linkn" href="index.php?act=gd&GOODS_ID={$glist[goods][0]}">{$glist[goods][1]}</a></strong></td>
        </tr>
        <tr>
          <td><img src="{#t_images#}dollar.gif" width="14" height="15">&nbsp;{if $glist[goods][3] eq 0} 面议{else}{$glist[goods][3]}元{if $glist.goods_discount} X {$glist.goods_discount}%(折扣){/if} {/if}</td>
        </tr>
        <tr>
          <td {if $glist[goods][4] ge 100}class=red{/if}>人气：{$glist[goods][4]}</td>
        </tr>
    </table></td>
    <td >{$glist[goods][5]}</td>
    <td >{$glist[goods][2]}</td>
  </tr>
  {/section}
  <tr class='f_one'>
    <td colspan="4" align="right">{$pages}</td>
  </tr>
</table>
{elseif $code eq "s" }
<table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
  <tr >
    <th width="15%" class='td_head'>图&nbsp;片</th>
    <th width="53%" class='td_head'> 排序：
        <select name="select2" onchange="window.location.href='index.php?act=Lst&code={$code}&FieldID=' + this.options[this.selectedIndex].value;">
          <option value="0" {if $FieldID eq 0}selected{/if}>----排序条件----</option>
          <option value="1" {if $FieldID eq 1}selected{/if}>按开业时间近到远</option>
          <option value="2" {if $FieldID eq 2}selected{/if}>按开业时间远到近</option>
            </select>
    </th>
    <th width="19%" class='td_head'>商家</th>
    <th width="17%" class='td_head'>开业时间</th>
  </tr>
  {section name=shop loop=$slist}
  <tr class='f_one'>
    <td align="center"><a href="index.php?act=sd&SHOP_ID={$slist[shop][0]}"><img src="{$slist[shop][6]}"></a></td>
    <td ><table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="18"><strong><a class="linkn" href="index.php?act=sd&SHOP_ID={$slist[shop][0]}">{$slist[shop][1]}</a></strong></td>
        </tr>
        <tr>
          <td>地点：{$slist[shop][3]}</td>
        </tr>
        <tr>
          <td {if $glist[goods][4] ge 100}class=red{/if}>经营范围：{$slist[shop][5]}</td>
        </tr>
    </table></td>
    <td >{$slist[shop][4]}</td>
    <td >{$slist[shop][2]}</td>
  </tr>
  {/section}
  <tr class='f_one'>
    <td colspan="4" align="right">{$pages}</td>
  </tr>
</table>
{/if}</td>
<!-- left end -->
<td  width="175" valign="top"><table width="175"  border="0" align="center" cellpadding="0" cellspacing="0" class="i_table">
  <tr>
    <td width="161" class=left_head>招商铺位</td>
  </tr>
  <tr>
    <td>{section name=key loop=$second_shop} &nbsp;&nbsp;{if $second_shop[key][0] eq "0"}此 位 招 租{else}<a href="index.php?act=sd&SHOP_ID={$second_shop[key][0]}">{$second_shop[key][1]}</a>{/if}<br>
      <br>
{/section}</td>
  </tr>
</table>
  <br>
  </td>
<!-- right end -->
</tr>
</table>
{include file="Diamond.tpl"}
<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
{include file="Info.tpl"}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
</td></tr></table>
{include file="footer.tpl"}